#!/bin/sh
#install the kernel file uImage to the tftp root directory.
UBOOT_FILE=u-boot.bin
DES_DIR=~/tftpboot/
if [ $1="i" ] ; then
make CROSS_COMPILE=arm-none-linux-gnueabi-
fi

if [ $1="c" ] ; then
make CROSS_COMPILE=arm-none-linux-gnueabi- clean
fi

if [ -e "$UBOOT_FILE" ]; then
	echo "Installing $UBOOT_FILE to $DES_DIR"
	cp -rf $UBOOT_FILE $DES_DIR
fi
